<?php

namespace app\api\model;
use think\admin\Model;
class DataAddresser extends Model
{
    public static function getDetail(string $field = '', $where = []): array
    {
       $info = self::mk()->where($where)->field($field)->find();
       if(empty($info) === FALSE){
           return $info->toArray();
       }else{
           return [];
       }
    }
    public static function getLists(string $field = '', $where = []): array
    {
       return self::mk()->where($where)->field($field)->select()->toArray();
    }
}
